<!--
/**************************************************
* @ bargainquery.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/04/22, owen
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<%
ResultProcess tBargain = (ResultProcess)request.getAttribute("Bargain"); 
ArrayList tList = new ArrayList();
String tReQuery = (String)request.getAttribute("requery");
%>
<html>
	<head>
		<title>合同管理</title>
		<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
			<SCRIPT language="JavaScript" src="js/calendar.js"></SCRIPT>
			<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
			<script language="javascript">
			var counter;
			function process(val){
				if(val == 'Q'){
				    var tStr = "";		
			        var tEnd = "";				
			      if(!isEmpty(bargainqueryform.startsigndate.value)){
				    tStr = bargainqueryform.startsigndate.value.substr(0,4) + bargainqueryform.startsigndate.value.substr(5,2) + bargainqueryform.startsigndate.value.substr(8,2);
			        }
			      if(!isEmpty(bargainqueryform.endsigndate.value)){
				    tEnd = bargainqueryform.endsigndate.value.substr(0,4) + bargainqueryform.endsigndate.value.substr(5,2) + bargainqueryform.endsigndate.value.substr(8,2);						
			        }
			      if(parseInt(tStr) > parseInt(tEnd)){
					alert("签约日期的开始日期不能大于截止日期！");
					return false;
			        }	
				 
				  if(!isEmpty(bargainqueryform.startenddate.value)){
				    tStr = bargainqueryform.startenddate.value.substr(0,4) + bargainqueryform.startenddate.value.substr(5,2) + bargainqueryform.startenddate.value.substr(8,2);
			        }
			      if(!isEmpty(bargainqueryform.stopenddate.value)){
				    tEnd = bargainqueryform.stopenddate.value.substr(0,4) + bargainqueryform.stopenddate.value.substr(5,2) + bargainqueryform.stopenddate.value.substr(8,2);						
			        }
			      if(parseInt(tStr) > parseInt(tEnd)){
					alert("终止日期的开始日期不能大于截止日期！");
					return false;
			        }
				 
				  if(!isEmpty(bargainqueryform.startreturneddate.value)){
				    tStr = bargainqueryform.startreturneddate.value.substr(0,4) + bargainqueryform.startreturneddate.value.substr(5,2) + bargainqueryform.startreturneddate.value.substr(8,2);
			        }
			      if(!isEmpty(bargainqueryform.endreturneddate.value)){
				    tEnd = bargainqueryform.endreturneddate.value.substr(0,4) + bargainqueryform.endreturneddate.value.substr(5,2) + bargainqueryform.endreturneddate.value.substr(8,2);						
			        }
			      if(parseInt(tStr) > parseInt(tEnd)){
					alert("归卷日期的开始日期不能大于截止日期！");
					return false;
			        }
					bargainqueryform.action = "<%= response.encodeURL(request.getContextPath() + "/A170202.do") %>";
    				bargainqueryform.submit();
				 }else if(val == 'T'){
				    <%
					    if(tReQuery!=null && tReQuery.equals("true")){
					%>
					   
					   bargainqueryform.action = "<%= response.encodeURL(request.getContextPath() + "/A170202.do") %>";
    				   bargainqueryform.submit();
                       return true;
			    	<%}%>
				  
				}

			}
           function add(){
               bargainqueryform.action = "<%= response.encodeURL(request.getContextPath() + "/A170101.do") %>";
    		   bargainqueryform.submit();
           }
           
           function clean(){
               bargainqueryform.gs_bgn_department.value = "";
               bargainqueryform.gs_bgn_signuser.value = "";
               bargainqueryform.gs_bgn_userid.value = "";
               bargainqueryform.gs_bgn_vol.value = "";
               bargainqueryform.gs_bgn_serial.value = "";
               bargainqueryform.gs_bgn_term.value = "";
               bargainqueryform.gs_bgn_number.value = "";
               bargainqueryform.gs_bgn_filenumber.value = "";
               bargainqueryform.gs_bgn_effect.value = "";
               bargainqueryform.gs_bgn_content.value = "";
               bargainqueryform.startsigndate.value = "";
               bargainqueryform.endsigndate.value = "";
               bargainqueryform.startenddate.value = "";
               bargainqueryform.stopenddate.value = "";
               bargainqueryform.startreturneddate.value = "";
               bargainqueryform.endreturneddate.value = "";
               bargainqueryform.maintype.checked = false;
               bargainqueryform.onenddate.checked = false;
           
           }
           
           function modifyEffect()
           {
               var Id;
               var ids = document.pager.gs_bgc_effectserial;					
			   if(ids != null)
			   {
			   	  if (ids.length == null)
			   	  {
			   	  	  Id=ids.value;
					  document.bargaineffectform.gs_bgc_effectserial.value=Id;
					  document.bargaineffectform.gs_bgc_effectserial.checked = true;
			   	  }
			   	  else
			   	  {
					  for(i=0; i<ids.length;i++)
					  {
							if(ids[i].checked)
							{
							   Id=ids[i].value;
							   document.bargaineffectform.gs_bgc_effectserial[i].value=Id;
							   document.bargaineffectform.gs_bgc_effectserial[i].checked = true;
							}
					  }
				  }
			   } 
			   
			   if(document.pager.gs_bgc_effectserial.checked==true)
			   {
					Id=document.pager.gs_bgc_effectserial.value;
			   }
			   if(Id==null)
			   {
				    alert("请选择一个设置为无效的合同信息。");
				    return false;
			   } 
			   
			   if(confirm('是否确定将所选合同设置为无效？'))
			   {		       
				    bargaineffectform.gs_bgn_department.value=bargainqueryform.gs_bgn_department.value;
			        bargaineffectform.gs_bgn_signuser.value=bargainqueryform.gs_bgn_signuser.value;
			        bargaineffectform.gs_bgn_userid.value=bargainqueryform.gs_bgn_userid.value;
			        bargaineffectform.gs_bgn_vol.value=bargainqueryform.gs_bgn_vol.value;
			        bargaineffectform.gs_bgn_serial.value=bargainqueryform.gs_bgn_serial.value;
			        bargaineffectform.gs_bgn_term.value=bargainqueryform.gs_bgn_term.value;
			        bargaineffectform.gs_bgn_number.value=bargainqueryform.gs_bgn_number.value;
			        bargaineffectform.gs_bgn_filenumber.value=bargainqueryform.gs_bgn_filenumber.value;
			        bargaineffectform.gs_bgn_effect.value=bargainqueryform.gs_bgn_effect.value;
			        bargaineffectform.gs_bgn_content.value=bargainqueryform.gs_bgn_content.value;
			        bargaineffectform.startsigndate.value=bargainqueryform.startsigndate.value;
			        bargaineffectform.endsigndate.value=bargainqueryform.endsigndate.value;
			        bargaineffectform.startenddate.value=bargainqueryform.startenddate.value;
			        bargaineffectform.stopenddate.value=bargainqueryform.stopenddate.value;
			        bargaineffectform.startreturneddate.value=bargainqueryform.startreturneddate.value;
			        bargaineffectform.endreturneddate.value=bargainqueryform.endreturneddate.value;
				       
				    if(bargainqueryform.maintype.checked == true)
				    {
				       bargaineffectform.maintype.value=bargainqueryform.maintype.value;
				    }
				    if(bargainqueryform.onenddate.checked == true)
				    {
				       bargaineffectform.onenddate.value=bargainqueryform.onenddate.value;
				    }
				    bargaineffectform.action = "<%= response.encodeURL(request.getContextPath() + "/A170203.do") %>";
    		        bargaineffectform.submit();
    		   }
           
           }
           
			function del(){
				var Id="";			
				var num=0;		
				var tempids = new Array();
				var ids = document.getElementsByName("gs_bgc_effectserial");
				for(i = 0;i<ids.length;i++){
					if(ids[i].value == null || ids[i].value == ""){
						break;
					}else{
						if(ids[i].checked){
							tempids[num] = ids[i].value;
							num++;
						}
					}
				}
				if(tempids.length == 0){
					alert("请至少选择一个要删除的合同信息。");
					return false;
				}
				for(i=0;i<tempids.length;i++){
					document.bargaindelform.gs_bgc_effectserial.value = document.bargaindelform.gs_bgc_effectserial.value + tempids[i] + ",";
				}
				if(confirm('是否确定删除所选合同？')){
					bargaindelform.action = "<%= response.encodeURL(request.getContextPath() + "/A170204.do") %>";
					bargaindelform.submit();
				}else{
					document.bargaindelform.gs_bgc_effectserial.value = "";
				}
			}
           
			function modify(){
				var Id;			
				var num=0;	
				var tempids = new Array();	
				var ids = document.getElementsByName("gs_bgc_effectserial");
				
				
				for(i = 0;i<ids.length;i++){
					if(ids[i].value == null || ids[i].value == ""){
						break;
					}else{
						if(ids[i].checked){
							tempids[num] = ids[i].value;
							num++;
						}
					}
				}
				
				if(tempids.length==0){
					alert("请至少选择一个需要修改的合同信息。");
					return false;
				}
				if(num>1){
					alert("至多只能选取一个需要修改的合同信息。");
					return false;
				}
				

				Id=tempids[0];

				
				
				//if(document.pager.gs_bgc_effectserial.checked==true){
				//	Id=document.pager.gs_bgc_effectserial.value;
				//}

				//	 if(Id==null){
				//       alert("请选择一个设置为修改的合同信息。");
				//       return false;
				//       }
				//     if(num>1){
				//       alert("您只能选择一个修改的合同信息。");
				//       return false;
				//     }
				  //var result = null;
    		      window.open('<%= response.encodeURL(request.getContextPath() + "/A170205.do") %>?gs_bgc_modifyserial='+Id,"","status:no;unadorned:no;dialogWidth:900px;dialogHeight:1200px;help:no;");

             }
             
             function copy(){
               var Id;			
              var num=0;		
			   if(document.pager.gs_bgc_effectserial != null){
				  for(i=0; i<document.pager.gs_bgc_effectserial.length;i++){
						if(document.pager.gs_bgc_effectserial[i].checked){
						   num++;
						   Id=document.pager.gs_bgc_effectserial[i].value;
						   //alert(Id);
						   //document.bargainmodifyform.gs_bgc_modifyserial[i].value=Id;
						   //document.bargainmodifyform.gs_bgc_modifyserial[i].checked = true;
						    }
						  }
					  } 
					  //alert(num);
					    if(document.pager.gs_bgc_effectserial.checked==true){
						   Id=document.pager.gs_bgc_effectserial.value;
					  }
					 if(Id==null){
				       alert("请选择一个需要复制的合同信息。");
				       return false;
				       }
				     if(num>1){
				       alert("您只能选择一个需要复制的合同信息。");
				       return false;
				     }
				    window.location = "<%= response.encodeURL(request.getContextPath() + "/A170207.do") %>?gs_bgc_modifyserial="+Id;
    		        //bargainqueryform.submit();
				  } 
			</script>
	</head>
	<body BGCOLOR="#f2f2f2" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="process('T')">
		<form name="bargainqueryform" method="get">
			<p><FONT face="宋体"></FONT><br>
			</p>
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td height="20">
						<table width="100%" border="0" cellspacing="0" cellpadding="1">
							<tr height="20">
								<td height="30" width="758" class="mtxt_black">合同管理
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="bg_line" height="2"></td>
				</tr>
			</table>
			<br>
			<table class="bg_table" id="Table1" cellspacing="1" cellpadding="0" style="PADDING-RIGHT:5px; PADDING-LEFT:5px"
				width="98%" align="center" border="0">
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">部门</TD>
					<TD class="bg_row_odd" width="35%">
						<INPUT type="text" NAME="gs_bgn_department" value="<%=request.getParameter("gs_bgn_department")==null? "":request.getParameter("gs_bgn_department") %>">
					</TD>
					<TD class="bg_column" align="center" width="15%">签约人</TD>
					<TD align="left" class="bg_row_odd" width="35%">
						<INPUT type="text" NAME="gs_bgn_signuser" value="<%=request.getParameter("gs_bgn_signuser")==null? "":request.getParameter("gs_bgn_signuser") %>">
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">客户名称</TD>
					<TD class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_userid" value="<%=request.getParameter("gs_bgn_userid")==null? "":request.getParameter("gs_bgn_userid") %>">
					</TD>
					<TD class="bg_column" align="center" width="15%">卷号</TD>
					<TD align="left" class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_vol" value="<%=request.getParameter("gs_bgn_vol")==null? "":request.getParameter("gs_bgn_vol") %>">
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">编号</TD>
					<TD class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_serial" value="<%=request.getParameter("gs_bgn_serial")==null? "":request.getParameter("gs_bgn_serial") %>">
					</TD>
					<TD class="bg_column" align="center" width="15%">期限</TD>
					<TD align="left" class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_term" value="<%=request.getParameter("gs_bgn_term")==null? "":request.getParameter("gs_bgn_term") %>">
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">页数</TD>
					<TD class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_number" value="<%=request.getParameter("gs_bgn_number")==null? "":request.getParameter("gs_bgn_number") %>">
					</TD>
					<TD class="bg_column" align="center" width="15%">附件数</TD>
					<TD align="left" class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_filenumber" value="<%=request.getParameter("gs_bgn_filenumber")==null? "":request.getParameter("gs_bgn_filenumber") %>">
					</TD>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center" width="15%">有效性</TD>
					<TD class="bg_row_odd">
						<select name="gs_bgn_effect">					
						<option value="">---全部---</option>
						<%
							String tGsBgnEffect = (String)request.getParameter("gs_bgn_effect");
						     
							String[][] tEffect = GSBaseManager.getAllEffect();
							if(tEffect != null && tEffect.length > 0 ){
								for(int i=0; i<tEffect.length; i++){
									String[] temp = tEffect[i];
									if(tGsBgnEffect != null && tGsBgnEffect.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected>
										<%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>" >
										<%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
						</select>
						
					</TD>
					<TD class="bg_column" align="center" width="15%">合同内容</TD>
					<TD align="left" class="bg_row_odd">
						<INPUT type="text" NAME="gs_bgn_content" value="<%=request.getParameter("gs_bgn_content")==null? "":request.getParameter("gs_bgn_content") %>">
					</TD>
				</TR>
				<tr height="20">
					<TD class="bg_column" align="center">签约日期</TD>
					<TD align="left" class="bg_row_odd">
						<input name='startsigndate' value="<%=request.getParameter("startsigndate")==null?"":request.getParameter("startsigndate")%>" readonly onfocus='setday(this)' size="15">
						～ <input name='endsigndate' value="<%=request.getParameter("endsigndate")==null?"":request.getParameter("endsigndate")%>" readonly onfocus='setday(this)' size="15">
					</TD>
					<!--</tr>
				<tr height="20">-->
					<TD class="bg_column" align="center">终止日期</TD>
					<TD align="left" class="bg_row_odd">
						<input name='startenddate' value="<%=request.getParameter("startenddate")==null?"":request.getParameter("startenddate")%>" readonly onfocus='setday(this)' size="15">
						～ <input name='stopenddate' value="<%=request.getParameter("stopenddate")==null?"":request.getParameter("stopenddate")%>" readonly onfocus='setday(this)' size="15">
					</TD>
				</tr>
				<TR height="20">
					<TD class="bg_column" align="center">归卷日期</TD>
					<td class="bg_row_odd" colspan="3">
						<input name='startreturneddate' value="<%=request.getParameter("startreturneddate")==null?"":request.getParameter("startreturneddate")%>" readonly onfocus='setday(this)' size="15">
						～ <input name='endreturneddate' value="<%=request.getParameter("endreturneddate")==null?"":request.getParameter("endreturneddate")%>" readonly onfocus='setday(this)' size="15">
					</td>
				</TR>
				<TR height="20">
					<TD class="bg_column" align="center">其他</TD>
					<TD left="right" class="bg_row_odd" colspan="3">
						<% 
						String tMaintype = (String)request.getParameter("maintype");
						
						if(tMaintype!=null&&tMaintype.equals("1")){
						%>
						<INPUT type="checkbox" NAME="maintype" value="1" checked>以主、副合同合并方式显示&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<%}else{ %>
						<INPUT type="checkbox" NAME="maintype" value="1">以主、副合同合并方式显示&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<%} %>
						
						<% 
						String tOnenddate = (String)request.getParameter("onenddate");
						
						if(tOnenddate!=null&&tOnenddate.equals("1")){
						%>
						<INPUT type="checkbox" NAME="onenddate" value="1" checked>不包括无终止日期的合同
						<%}else{ %>
						<INPUT type="checkbox" NAME="onenddate" value="1">不包括无终止日期的合同
						<%} %>
					</TD>
				</TR>
			</table>
			<p align="center">
				<input type="button" class="kuang" value="查询" width="58" height="24" onclick="return process('Q')"> 
				<INPUT type="button" value="清空" class="kuang" onclick="return clean()">
			</p>
            <%
           if(tBargain != null){
                    int totalRecords = 0;
                    int defaultPageSize = 10;
                    totalRecords = tBargain.getRecordsSize();
            %>          
            <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
            <%tList = tBargain.getDisplayRecords(index.intValue(),pageSize.intValue()); %>
            </page:pager>
            <%} %>
			</form>
			
<%
	
	if(tBargain != null){
%>
      <center>
			<form name='pager' method="post">
            <table class="bg_table" id="tableId" cellspacing="1" cellpadding="2" width="98%" align="center"
				border="0">
				<tr class="bg_column" height="20">
					<td class="top" align="center" colspan="17">
						<b>合同列表</b>
					</td>
				</tr>
				<tr class="bg_column" height="20">
					<td class="top" align="center">
						
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">合同（协议）内容</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">客户名称</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">主副合同</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">有效性</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">页数</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">附件数</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">部门</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">签约人</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">签约日期</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">终止日期</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">期限</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">卷号</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">编号</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">归卷日期</div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">详细</div>
					</td>
				</tr>
				<%
						if(tList != null && tList.size() > 0){
						for(int i=0; i<tList.size(); i++){
							String[] tStr = (String[])tList.get(i);
							String tTempStr="";
							if(i%2==0){
								tTempStr="class=\"bg_row_odd\"";
							}else {
								tTempStr="class=\"bg_row_even\"";
							}
					%>
				<tr <%=tTempStr%> height="20">
					<td class="top" align="center">
						<input type=checkbox name="gs_bgc_effectserial" value="<%=tStr[14] %>">
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[0]%></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[1] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[2] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[13]%></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[3] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[4] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[5] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[6] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[7] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[8] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[9] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[10] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[11] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content"><%=tStr[12] %></div>
					</td>
					<td class="top" align="center">
						<div align="center" class="txt_content">
						<A href="<%= response.encodeURL(request.getContextPath() + "/A170108.do") %>?gs_bgn_serial=<%=tStr[11]%>&status=1&gs_bgn_id=<%=tStr[14]%> " target="_blank">详细</A></div>
					</td>
				</tr>
				
				<%	
							}
					%>
						  <tr class="bg_column" height=20>
						    <td width="960" height="16" colspan="17" align="right">
									<!--导航条-->
						    		<page:navigator type='text' queryForm="bargainqueryform"/>
						    </td>
						 </tr> 
				    <%
						}else{
					%>       
					</br>
							<font color="red">没有符合条件的合同信息</font>
					<%
						}
					%>
				   
				
		      	
		    </table>
            </form>
		</center>
		
		<form name="bargaindelform" method="post">
			<input type="hidden" name="gs_bgc_effectserial">
		</form>
		<form name="bargaineffectform" method="post">	
		<div style='display:none'>
		<%
			if(tList != null && tList.size() > 0){
				for(int i=0; i<tList.size(); i++){
		%>
			<input type="checkbox" name="gs_bgc_effectserial">
		<%		
				}
			}
		%>
		<input type="hidden" name="gs_bgn_department">
		<input type="hidden" name="gs_bgn_signuser">
		<input type="hidden" name="gs_bgn_userid">
		<input type="hidden" name="gs_bgn_vol">
		<input type="hidden" name="gs_bgn_serial">
		<input type="hidden" name="gs_bgn_term">
		<input type="hidden" name="gs_bgn_number">
		<input type="hidden" name="gs_bgn_filenumber">
		<input type="hidden" name="gs_bgn_effect">
		<input type="hidden" name="gs_bgn_content">
		<input type="hidden" name="startsigndate">
		<input type="hidden" name="endsigndate">
		<input type="hidden" name="startenddate">
		<input type="hidden" name="stopenddate">
		<input type="hidden" name="startreturneddate">
		<input type="hidden" name="endreturneddate">
		<input type="hidden" name="maintype">
		<input type="hidden" name="onenddate">
		</div>	
     </form>
	 <form name="bargainmodifyform" method="post">	
	    <input type="hidden" name="gs_bgc_modifyserial">
	 </form>	
		<p align="center">
			<INPUT type="button" value="添加" class="kuang" onclick="return add()"> 
			<INPUT type="button" value="复制" class="kuang" onclick="return copy()">
			<INPUT type="button" value="修改" class="kuang" onclick="return modify()"> 
			<INPUT type="button" value="删除" class="kuang" onclick="return del()">
			<INPUT type="button" value="设置为无效" class="kuang" onclick="return modifyEffect()">
		</p>
<%		
	}
%>
	
	</body>
</html>
